#include <stdio.h>
#include <math.h>

int main(void)
{
	int n, i, j;

	printf("Input an odd number: ");
	scanf("%d", &n);
	for (i = -n / 2; i <= n / 2; i++)
	{
		for (j = 1; j <= n / 2 - abs(i); j++)
			printf(" ");
		for (j = 1; j <= 2 * abs(i) + 1; j++)
			printf("*");
		printf("\n");
	}

	return 0;
}